<?
	$params[sid] = $sid;
	$params[action] = "changeDetails";
	$url = "$baseURL/$webDIR/?".encode_params($params);

	if($errorMsg) echo "<center>$errorMsg<center>";
	$info1 = list_details($id,'array');
	$info1 = $info1[0];
	$info = array_merge($info1,$info2);


?>


<TABLE border=1 class='bTable' cellspacing='0'>
	<form action='<?=$url;?>' method='POST'>
	<tr>
		<th colspan='2'>
			Contact information
		</th>
	</tr>
	<tr <? if($errorCode==1) echo "class='err'"; ?>><td>Username:</td>
		<td>
			<?=$info[reseller];?>
		</td>
	</tr>
	<tr <? if($errorCode==2) echo "class='err'"; ?>><td>Password:</td>
		<td>
			<input type='password'  name='password' value='<?=$info[password_];?>'>
			 Not required.Type password only if you want to change the old one.
		</td>
	</tr>
	<tr <? if($errorCode==2) echo "class='err'"; ?>><td>Retype Password:</td>
		<td>
			<input type='password' name='repassword' value='<?=$info[password_];?>'>
		</td>
	</tr>
	<tr <? if($errorCode==3) echo "class='err'"; ?>><td>First Name:</td>
		<td>
			<input type='text' name='firstname' value='<?=$info[firstname];?>'>
		</td>
	</tr>
	<tr <? if($errorCode==4) echo "class='err'"; ?>><td>Last Name:</td>
		<td>
			<input type='text' name='lastname' value='<?=$info[lastname];?>'>
		</td>
	</tr>
	<tr <? if($errorCode==5) echo "class='err'"; ?>><td>E-mail:</td>
		<td>
			<input type='text' name='email' value='<?=$info[email];?>'>
		</td>
	</tr>
	<tr <? if($errorCode==6) echo "class='err'"; ?>><td>Phone:</td>
		<td>
			<input type='text' name='phone' value='<?=$info[phone];?>'>
		</td>
	</tr>
	<tr <? if($errorCode==7) echo "class='err'"; ?>><td>Address 1:</td>
		<td>
			<input type='text' name='address1' value='<?=$info[address1];?>'>
		</td>
	</tr>
	<tr <? if($errorCode==7) echo "class='err'"; ?>><td>Address 2:</td>
		<td>
			<input type='text' name='address2' value='<?=$info[address2];?>'>
		</td>
	</tr>
	<tr <? if($errorCode==8) echo "class='err'"; ?>><td>City:</td>
		<td>
			<input type='text' name='city' value='<?=$info[city];?>'>
		</td>
	</tr>
	<tr <? if($errorCode==9) echo "class='err'"; ?>><td>State:</td>
		<td>
			<input type='text' name='state' value='<?=$info[state];?>'>
		</td>
	</tr>
	<tr <? if($errorCode==10) echo "class='err'"; ?>><td>ZIP/Postal code</td>
		<td>
			<input type='text' name='zip' value='<?=$info[zip];?>'>
		</td>
	</tr>
	<tr <? if($errorCode==11) echo "class='err'"; ?>><td>Country</td>
		<td>
			<select name='country'>
				<? echo get_countries($info[country]); ?>
			</select>
		</td>
	</tr>
	<tr <? if($errorCode==12) echo "class='err'"; ?>><td>Tax ID</td>
		<td>
			<input type='text' name='tax_id' value='<?=$info[tax_id];?>'>
		</td>
	</tr>
<!--
	<tr align="left" valign="middle">
		<td rowspan="2" >Enter the word as it is shown<br>in the box.</td>
		<td><font size="2"><img src='<?$params[sid]=$sid;$params[action]="5";	echo "$baseURL/signup/index.php?".encode_params($params); ?>'></font></td>
	</tr>
	<tr align="left" valign="middle">
		<td><span class="text"><font size="2"><input type=text name='verif' size=8></font></span></td>
	</tr>
-->
	<tr><td colspan='2' align='center'>
		<input type='button' value='Back' onClick='javascript:history.go(-1)'>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<input type='submit' value='Change'>
	</td></tr>
	</form>
</TABLE>
